﻿using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Runtime;
using Autodesk.Windows;
using Demo.View;
using GalaSoft.MvvmLight.Command;
using LeAcadPlugin.MHEntry.Commands;
using LeonCad.Core.Ribbons;
using System;
using System.IO;
using System.Linq;
using System.Windows.Controls;
using System.Windows.Data;
namespace Demo {

    public partial class Startup : IExtensionApplication {

        public void Initialize() {
            try {
                new RibbonCmd().Do();
            }
            catch (System.Exception ex) {
                Acap.ShowAlertDialog(ex.Message);
            }
        }

        public void Terminate() {
        }

        [CommandMethod("ribbon_XAML_test")]
        public static void RibbonFromXaml() {





            //var paletteSet1 = new Autodesk.AutoCAD.Windows.PaletteSet("123","Showmytool",Guid.NewGuid());
            //paletteSet1.AddVisual("", new UserControl2());
            //paletteSet1.Visible = true;
        }
    }
}